package com.yc.service.xcx.sufferer.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yc.dao.DaoSupport;
import com.yc.service.xcx.base.XCXBaseService;
import com.yc.service.xcx.sufferer.ISuffererService;
import com.yc.util.PageData;

@Service
public class SuffererService extends XCXBaseService implements ISuffererService {
	

	@Resource(name = "daoSupport")
	private DaoSupport dao;

	@Override
	public void save(PageData pd) throws Exception {
		// TODO Auto-generated method stub
				dao.save("SuffererMapper.save", pd);
	}

	@Override
	public void delete(PageData pd) throws Exception {
		// TODO Auto-generated method stub
		dao.delete("SuffererMapper.delete", pd);
	}

	@Override
	public void edit(PageData pd) throws Exception {
		// TODO Auto-generated method stub
		dao.update("SuffererMapper.edit", pd);
	}

	@Override
	public PageData findById(PageData pd) throws Exception {
		// TODO Auto-generated method stub
		return (PageData) dao.findForObject("SuffererMapper.findById", pd);
	}

	@Override
	public List<PageData> getSuffererList(PageData pd) throws Exception {
		// TODO Auto-generated method stub
		return (List<PageData>) dao.findForList("SuffererMapper.getSuffererList", pd);
	}

}
